From 9cf7c9d7c006adc8e97156959d5a9e5f1e48d0e9 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 6 Jan 2004 23:42:35 +0000 Subject: [PATCH] Mark Hammond reports that Cygwin termio handling is broken on the second open. Revert to the WIN32 API for that case. --- jeeps/gpsserial.c | 6 ++++-- magproto.c | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jeeps/gpsserial.c b/jeeps/gpsserial.c index 6a8709a95..fbbfbcbad 100644 --- a/jeeps/gpsserial.c +++ b/jeeps/gpsserial.c @@ -31,8 +31,10 @@ #include #include - -#if __WIN32__ +/* + * termio on Cygwin is apparently broken, so we revert to Windows serial. + */ +#if defined (__WIN32__) || defined (__CYGWIN__) #include /* diff --git a/magproto.c b/magproto.c index e8d040ba6..b6d4288c8 100644 --- a/magproto.c +++ b/magproto.c @@ -472,7 +472,10 @@ retry: mag_writeack(isum); } -#if __WIN32__ +/* + * termio on Cygwin is apparently broken, so we revert to Windows serial. + */ +#if defined (__WIN32__) || defined (__CYGWIN__) #include -- 2.30.2